package top.zywork.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.zywork.dao.UserHierarchyDAO;
import top.zywork.dos.UserHierarchyDO;
import top.zywork.dto.UserHierarchyDTO;
import top.zywork.service.AbstractBaseService;
import top.zywork.service.UserHierarchyService;

import javax.annotation.PostConstruct;

/**
 * UserHierarchyServiceImpl服务接口实现类<br/>
 *
 * 创建于2020-03-05<br/>
 *
 * @author http://zywork.top 王振宇
 * @version 1.0
 */
@Service(value = "userHierarchyService")
public class UserHierarchyServiceImpl extends AbstractBaseService implements UserHierarchyService {

    private UserHierarchyDAO userHierarchyDAO;

    @Autowired
    public void setUserHierarchyDAO(UserHierarchyDAO userHierarchyDAO) {
        super.setBaseDAO(userHierarchyDAO);
        this.userHierarchyDAO = userHierarchyDAO;
    }

    @PostConstruct
    public void init() {
        super.init(UserHierarchyDO.class, UserHierarchyDTO.class);
    }
}